import VueRouter from 'vue-router'

import home from './components/home.vue'
import search from './components/search.vue'
import vip from './components/vip.vue'
import shopcar from './components/shopcar.vue'

import test from './components/home/test.vue'
import img from './components/home/img.vue'

var router = new VueRouter({
	routes:[
		{path: '/',redirect: '/home'},
		{path:'/home',component:home},
		{path:'/vip',component:vip},
		{path:'/shopcar',component:shopcar},
		{path:'/search',component:search},
		{path:'/home/test',component:test},
		{path:'/home/img',component:img},
	],
	linkActiveClass:'mui-active'
})

export default router